var special_glcode = new Array();
var special_action = new Array();
var special_glinfo = new Array();   // for displaying extra pop out information

special_glcode[special_glcode.length] = "815345"; special_action[special_action.length] = "Mileage";
special_glcode[special_glcode.length] = "870130"; special_action[special_action.length] = "Taxi";
special_glcode[special_glcode.length] = "870116"; special_action[special_action.length] = "Taxi";
special_glcode[special_glcode.length] = "870126"; special_action[special_action.length] = "PublishTransport";
// Added by thangnv on 20130828
special_glcode[special_glcode.length] = "Transport"; special_action[special_action.length] = "PublishTransport";

special_glcode[special_glcode.length] = "805940"; special_action[special_action.length] = "EntertainmentForGift";   special_glinfo[special_glinfo.length] = "805940";
special_glcode[special_glcode.length] = "820120"; special_action[special_action.length] = "EntertainmentForGift";   special_glinfo[special_glinfo.length] = "820120";
special_glcode[special_glcode.length] = "820114"; special_action[special_action.length] = "EntertainmentForGift";   special_glinfo[special_glinfo.length] = "820114";
special_glcode[special_glcode.length] = "820110"; special_action[special_action.length] = "EntertainmentForGift";   special_glinfo[special_glinfo.length] = "820110";
special_glcode[special_glcode.length] = "820112"; special_action[special_action.length] = "EntertainmentForGift";   special_glinfo[special_glinfo.length] = "820112";
// Added by thangnv on 20130819
special_glcode[special_glcode.length] = "805510"; special_action[special_action.length] = "EntertainmentForGift";   special_glinfo[special_glinfo.length] = "805510";

function ShowSpecialPopOut (GLCode, ResultContainer, Param) {

  var SelectedIndex = -1;
  
 
  for (var x = 0; x < special_glcode.length; x++) {
     
    if (special_glcode[x] == GLCode) {
    
        SelectedIndex = x;
        break;
    }
  }
     
  if (SelectedIndex >= 0) {
    ShowModal(special_action[SelectedIndex], ResultContainer, Param);
  }
}

function RowAmountIsControlled(GLCode) {
    
    var IsControlled = false;
    
      for (var x = 0; x < special_glcode.length; x++) {
         
        if (special_glcode[x] == GLCode) {
        
            IsControlled = true;
            break;
        }
      }    
    
    return IsControlled;

}
